home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / c / pmm / make / democonfig_eng / pmm.cfg < prev    next >
Text File  |  1999-06-14  |  6KB  |  176 lines

  1. ; Things that every time used
  2. ; ---------------------------
  3. ; CPU-meanigs: 1 = 68000
  4. ;              2 = 68010
  5. ;              3 = 68020 / 68881
  6. ;              4 = 68030 / 68882
  7. ;              5 = 68040 / FPU 040
  8. ;              6 = 68060 / FPU 060
  9. ;              7 = PPC / PowerUP (ELF)
  10. ;              8 = PPC / WarpOS  (ELH)
  11. ;
  12. ; $C = CPU/FPU for compiler
  13. ; $D = CPU/FPU defines for using in source. If not set
  14. ; Note: This is the original Pmm/vbcc-script that will be used
  15. ;       to create gateway-5, gateway-library, Pmm and all linkable .LIB
  16. ;       
  17. ; <-- ( ; EQ comment )
  18. # <-- ( # EQ comment ) for all make-fan's
  19. ;
  20.  
  21.  
  22.  
  23. ; Empty lines are ignored and allowed
  24. ; -----------------------------------
  25.  
  26. $C=-cpu=68000
  27. $D=-DCPU="68000" -DFPU="N/A"
  28. ;
  29. 2%$C=-cpu=68010
  30. 2%$D=-DCPU="68010" -DFPU="N/A"
  31. ;
  32. 3%$C=-cpu=68020 -fpu=68881
  33. 3%$D=-DCPU="68020" -DFPU="68881"
  34. ;
  35. 4%$C=-cpu=68030 -fpu=68882
  36. 4%$D=-DCPU="68030" -DFPU="68882"
  37. ;
  38. 5%$C=-cpu=68040 -fpu=68040
  39. 5%$D=-DCPU="68040" -DFPU="68040"
  40. ;
  41. 6%$C=-cpu=68060 -fpu=68060
  42. 6%$D=-DCPU="68060" -DFPU="68060"
  43. ;
  44. 7%$C=-cpu=ppc
  45. 7%$D=-DCPU="PPC" -DFPU="PowerUP"
  46. ;
  47. 8%$C=-cpu=wos
  48. 8%$D=-DCPU="PPC" -DFPU="WarpOS"
  49.  
  50. $o=T:LinkerObjListe
  51. ;
  52. ;   1%, 2% etc. look document
  53. ;
  54.  
  55. ;
  56. ; Presetvalues that used when the project not set own values.
  57. ; ------------ DANGER! Set optimizer to maximum can be a problem (BETA) !!!
  58. ;              I find not real problems in the optimizer from V0.6e
  59. ; Older versions: ">>> VAR <name> is used bevor defined":
  60. ; Don't use Optimizer higher than -O1. Or you create aa program that crash
  61. ; if the function with the warning start. If you don't habe a minimum of
  62. ; 16 MB free ram you can very quick get problem's with memory wenn high
  63. ; optimizefunctions set.
  64. ; $1, $2 ... $0 variables, no internal definition or use. for free useage.
  65. ;
  66. ; Next lines:
  67. ;   $1 is set WITHOUT cpu-rule, so it will work from 1 upto 0.
  68. ; 7%$1 set own value for CPU 7       If line over these line not changed
  69. ; 8%$1 also set own value for CPU 8  the CPU-7 & 8 are PPC-versions
  70. ;
  71. $1=-no-preprocessor
  72. 7%$1=-no-preprocessor -elf -no-regnames -no-multiple-ccs
  73. 8%$1=-no-preprocessor -amiga-align -poweropen -sc -no-multiple-ccs -use-lmw -peephole
  74. ;
  75. ; CHANGE IF YOU GUT PROBLEMS WITH OPTIMIZER OR RAM
  76. ;
  77. $2=-O=991 -maxoptpasses=50
  78. ;
  79. ; for linkerdefinitions: CPU-typ will checked
  80. ;
  81. $3=vlib:startup.o
  82. 7%$3=vlibppc:startup.o
  83. 8%$3=vlibwos:warpup.o
  84. ;
  85. $4=vlib:vc.lib vlib:amiga.lib vlib:extra.lib
  86. 7%$4=-lvc -lamiga -lextra -lpowerup
  87. 8%$4=vlibwos:vc.lib vlibwos:m.lib vlibwos:amiga.lib vlibwos:extra.lib vlibwos:x.o
  88. ;
  89. ; Includes: -I$I = source-directory from project 
  90. ; --------- Set here all Include-Dir's for compiling. Depend
  91. ;           use own definitions.
  92. ;
  93. $5=-Ivinclude: -IInclude: -IProj:Library/Include -IProj:Library/Init -I$I
  94. 7%$5=-Ivincludeppc: -IInclude: -IProj:Library/Include -IProj:Library/Init -I$I
  95. 8%$5=-Ivincludewos: -IInclude: -IProj:Library/Include -IProj:Library/Init -I$I
  96. ;
  97. ; start preprocessor's
  98. ;
  99. P=vcpp $5 -D__STDC__=1 -+ $D $&.c $&.i
  100. 7%P=vcpp $5 -D__STDC__=1 -+ $D $&.c $&.i
  101. 8%P=vcpp $5 -D__STDC__=1 -D__VBCC__=1 -D__PPC__=1 -+ $D $&.c $&.i
  102. ;
  103. ; start compiler
  104. ;
  105. C=vbccm68k $&.i -o= $&.a -quiet $C $1 $2
  106. 7%C=vbccppc $&.i -o= $&.a -quiet $C $1 $2
  107. 8%C=vbccppc $&.i -o= $&.a -quiet $C $1 $2
  108. ;
  109. ; start scheduler (only WarpOS work correct)
  110. ;
  111. 8%S=vscppc -quiet $&.a $&.s
  112. ;
  113. ; assembler 
  114. ;
  115. A=PhxAss noexe quiet opt 3 M=0 $&.a TO $&.o
  116. 2%A=PhxAss noexe quiet opt 3 M=1 $&.a TO $&.o
  117. 3%A=PhxAss noexe quiet opt 3 M=2 FPU=1 $&.a TO $&.o
  118. 4%A=PhxAss noexe quiet opt 3 M=3 FPU=1 $&.a TO $&.o
  119. 5%A=PhxAss noexe quiet opt 3 M=4 $&.a TO $&.o
  120. 6%A=PhxAss noexe quiet opt 3 M=6 $&.a TO $&.o
  121. 7%A=pasm_wos -R -F1 -O65536 $&.a -o $&.o
  122. 8%A=pasm_wos -F2 -O65536 $&.s -o $&.o
  123. ;
  124. ; Linker (PhxLnk: @ übergibt eine Datei in der alle .o-Files gelistet sind!)
  125. ;        (GNU-ld: < dito, aber über Standard-Input)
  126. ;        (vlink: -F für File)
  127. ; PmmLibr from project (extern) simulate a linker and use of F, f, -F, -f or
  128. ;         @ read linker-objectfile
  129. ;
  130. ; The linker is the longest commandostart of all. The Link-Libs and other
  131. ; Libs will use the most bytes from the maximum commandstring. And do anytime
  132. ; this, else that isn't what I like. So I do all obj-names, everytime a link
  133. ; must be done, the FIle after $o is bild with a list of all obj-files.
  134. ; So I 'm shure that the linker become the list so short as possible from
  135. ; Pmm.
  136. ;
  137. ; The Linker obj-list from file $o are used to make the endproduct $$
  138. ;
  139. L=vlink -s -sc -sd -x -dn $3 -F$o $L $4 -o $$
  140. 7%L=vlink -nostdlib -belf32powerup -s -sc -sd -Lvlibppc: -F$o $4 $3 $L -o $$
  141. 8%L=vlink -bamigaehf -s -sc -sd -x -nostdlib -Lvlibwos: $3 -F$o $L $4 -o $$
  142. ;
  143. ; CLI-commands use with control by pmm
  144. ;
  145. ; X0-X9 Run this lines if anything must be compile VOR first compiler starts.
  146. ;
  147. ; Y0-Y9 Run this Lines after Link. The File $$ (endprodukt) must really be
  148. ;       created
  149. ;
  150. ; R#: Run but only at special position and rules:
  151. ;
  152. ; R0: VOR  P - only if P will be startet
  153. ; R1:AFTER P - only after start P and output is created
  154. ; R2: VOR  C - only if C will be startet
  155. ; R3:AFTER C - only after start C and output is created
  156. ; R4: VOR  S - only if S will be startet
  157. ; R5:AFTER S - only after start S and output is created
  158. ; R6: VOR  A - only if A will be startet
  159. ; R7:AFTER A - only after start A and output is created
  160. ; R8: VOR  L - only if L will be startet
  161. ; R9:AFTER L - only after start L and output is created
  162. ; HINT: If lines not enough, use batch or arexx
  163. ;
  164. ; CleanUp
  165. ;
  166. R7=Delete $&.i $&.a
  167. 8%R7=Delete $&.i $&.a $&.s
  168. R9=Delete $o
  169. ;
  170. ; Create obj-dirs
  171. ;
  172. X0=MakeDir >Nil: obj obj/000 obj/010 obj/020 obj/030 obj/040 obj/060 obj/ppc obj/wos
  173.